const VueAxios = {
    vm: {},
    install(Vue,router = {},instance) {
        if(this.installed) {
            return;
        }
        this.installed = true;

        if(!instance) {
            return;
        }
        Vue.axios = instance;

        Object.defineProperties(Vue.prototype,{
            axios: {
                get: function() {
                    return instance;
                }
            },
            $http: {
                get: function get() {
                    return instance;
                }
            }
        })
    }
}

export {
    VueAxios
}